// 从数组中移除重复项
const removeDuplicates = (arr) => [...new Set(arr)];

console.log(removeDuplicates([1, 2, 2, 3, 3, 4, 4, 5, 5, 6]));

//  判断数组是否为空
const isNotEmpty = arr => Array.isArray(arr) && arr.length > 0;

isNotEmpty([1, 2, 3]);  // true

// 合并两个数组
const merge = (a, b) => a.concat(b);

const merge = (a, b) => [...a, ...b];

